package cn.shop.cloud.common;

// 自定义业务逻辑异常
public class BusinessException extends RuntimeException {

    // 运行结果信息
    private CodeMsg codeMsg;

    // getter setter
    public CodeMsg getCodeMsg() {
        return codeMsg;
    }

    public void setCodeMsg(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }

    // 构造方法
    public BusinessException(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }
}
